import json
import os

if __name__ == '__main__':
    with open('query_cmd.json', 'r') as f:
        query_cmd_l = json.load(f)
    print(query_cmd_l)
    for dataset_name in query_cmd_l:
        command = query_cmd_l[dataset_name]
        if dataset_name == 'text-to-image' or dataset_name == 'yahoomusic' or dataset_name == 'normal-64':
            # if dataset_name == 'audio':
            print(command)
            os.system("cd ../data/%s && %s" % (dataset_name, command))
            print("\n")
